package com.heima.feigns.admin;

import com.heima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;


@FeignClient("leadnews-admin")
public interface AdminFeign {

    //远程调用feign查询文章分类列表(热点文章使用)
    @GetMapping("/api/v1/channel/channels")
    ResponseResult selectAllChannel();
}